<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org" xmlns:about="http://www.w3.org/1999/xhtml">
<head>
<title>新增经纪人</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="js/jquery/jquery-1.7.1.js"></script>
<!--<link href="css/basic_layout.css" rel="stylesheet" type="text/css">-->
<!--<link href="css/common_style.css" rel="stylesheet" type="text/css">-->
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<script type="text/javascript" src="js/authority/commonAll.js"></script>
<script type="text/javascript" src="js/jquery/jquery-1.4.4.min.js"></script>
<script src="js/My97DatePicker/WdatePicker.js" type="text/javascript" defer="defer"></script>
<script type="text/javascript" src="js/artDialog/artDialog.js?skin=default"></script>
<script type="text/javascript">
	$(document).ready(function() {
		/*
		 * 提交
		 */
		$("#submitbutton").click(function() {
			if(validateForm()){
				checkFyFhSubmit();
			}
		});
		
		/*
		 * 取消
		 */
		$("#cancelbutton").click(function() {
			/**  关闭弹出iframe  **/
			window.parent.$.fancybox.close();
		});
		
		var result = 'null';
		if(result =='success'){
			/**  关闭弹出iframe  **/
			window.parent.$.fancybox.close();
		}
	});

	
	/** 表单验证  **/
	function validateForm(){
		if($("#fyXqName").val()==""){
			art.dialog({icon:'error', title:'友情提示', drag:false, resize:false, content:'填写房源小区', ok:true,});
			return false;
		}
		if($("#fyDh").val()==""){
			art.dialog({icon:'error', title:'友情提示', drag:false, resize:false, content:'填写房源栋号', ok:true,});
			return false;
		}
		if($("#fyCh").val()==""){
			art.dialog({icon:'error', title:'友情提示', drag:false, resize:false, content:'填写房源层号', ok:true,});
			return false;
		}
		if($("#fyFh").val()==""){
			art.dialog({icon:'error', title:'友情提示', drag:false, resize:false, content:'填写房源房号', ok:true,});
			return false;
		}
		if($("#fyZongMj").val()==""){
			art.dialog({icon:'error', title:'友情提示', drag:false, resize:false, content:'填写房源面积', ok:true,});
			return false;
		}
		if($("#fyJizuMj").val()==""){
			art.dialog({icon:'error', title:'友情提示', drag:false, resize:false, content:'填写计租面积', ok:true,});
			return false;
		}
		if($("#fyZldz").val()==""){
			art.dialog({icon:'error', title:'友情提示', drag:false, resize:false, content:'填写房源座落地址', ok:true,});
			return false;
		}
		return true;
	}

    function closeWin() {
        window.opener=null;
        window.open('','_self');
        window.close();
    }

</script>
</head>

<body>
<div id="nav_links">
    <div id="page_close">
        <a href="javascript:parent.$.fancybox.close();">
            <img src="images/common/page_close.png" width="35" height="35" align="right"/>
        </a>
    </div>
</div>
<center>
	<br><br>
	<h2 style="color:green">新增经纪人</h2>
	<br><br>
	<form class="form-horizontal" role="form" action="#"  th:action="@{/sys_insert}"  method="post">
		<div class="form-group" style="width:300px">
			<label for="account" class="col-sm-2 control-label">登录名</label>
			<div class="col-sm-10">
				<input type="text"  name="account" class="form-control" id="account" placeholder="Enter account">
			</div>
		</div>

		<div class="form-group" style="width:300px">
			<label for="password" class="col-sm-2 control-label">密码</label>
			<div class="col-sm-10">
				<input type="text" name="password" class="form-control" id="password" placeholder="Enter password">
			</div>
		</div>

		<div class="form-group" style="width:300px">
			<label for="agentName" class="col-sm-2 control-label">姓名</label>
			<div class="col-sm-10">
				<input type="text"  name="agentName" class="form-control" id="agentName" placeholder="Enter name">
			</div>
		</div>

		<div class="form-group" style="width:300px">
			<label for="telephone" class="col-sm-2 control-label">电话</label>
			<div class="col-sm-10">
				<input type="text" name="telephone" class="form-control" id="telephone" placeholder="Enter telephone">
			</div>
		</div>

		<div class="form-group" style="width:300px">
			<label for="email" class="col-sm-2 control-label">Email</label>
			<div class="col-sm-10">
				<input type="text" name="email" class="form-control" id="email" placeholder="Enter email">
			</div>
		</div>

		<div class="form-group" style="width:300px">
			<label for="workingtime" class="col-sm-2 control-label">工作时间 /年</label>
			<div class="col-sm-10">
				<input type="text" name="workingTime" class="form-control" id="workingtime" placeholder="workingTime">
			</div>
		</div>

		<div class="form-group" style="width:300px">
			<label for="belongshop" class="col-sm-2 control-label">所属店铺</label>
			<div class="col-sm-10">
				<input type="text"  name="belongShop" class="form-control" id="belongshop" placeholder="Enter shop">
			</div>
		</div>

		<div class="form-group" style="width:300px">
			<label for="selfAssessment" class="col-sm-2 control-label">自我评价</label>
			<div class="col-sm-10">
				<textarea  name="selfAssessment" class="form-control" id="selfAssessment" placeholder="Enter selfAssessment">
				</textarea>
			</div>
		</div>

		<div class="form-group" style="width:300px">
			<label for="city" class="col-sm-2 control-label">城市</label>
			<div class="col-sm-10">
				<select  name="city" class="form-control" id="city">
					<option value="">--请选择--</option>
					<option value="成都">成都</option>
					<option value="广州">广州</option>
				</select> </br>
				<!--<input type="text" name="city"  class="form-control" id="city" placeholder="Enter city">-->
			</div>
		</div>

		<div class="form-group" style="width:300px">
			<label for="sex" class="col-sm-2 control-label">性别</label>
			<div class="col-sm-10">
				<select  name="sex" class="form-control" id="sex">
					<option value="">--请选择--</option>
					<option value="1">男</option>
					<option value="0">女</option>
				</select> </br>
				<!--<input type="text"  name="sex" class="form-control" id="sex" placeholder="Enter sex">-->
			</div>
		</div>


		<div class="form-group">
			<div>
				<input type="submit" class="btn btn-primary" id="btn" value="Submit"/>
				<input  type="reset" class="btn btn-warning" value="Reset" />
                <input type="button" id="cancelbutton"  class="btn btn-info" value="Close" />
			</div>
		</div>
	</form>

</center>

</body>
</html>